package org.edu.modules.center.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_service_forum_reply")
@ApiModel(value="ve_service_forum_reply对象", description="论坛帖子表")
public class VeServiceForumReply
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.AUTO)
    @ApiModelProperty("主键ID，自增长")
    private Integer id;
    @ApiModelProperty("发帖子用户ID")
    private Integer userid;
    @ApiModelProperty("发帖子用户名称")
    private String username;
    @ApiModelProperty("帖子ID")
    private Integer postid;
    @ApiModelProperty("回复内容")
    private String content;
    @ApiModelProperty("回复时间")
    private Integer createtime;
    @ApiModelProperty("更新时间")
    private Integer updatetime;
    @ApiModelProperty("0禁用1启用-1删除")
    private Integer status;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeServiceForumReply setUsername(String username)
    {
        this.username = username;return this;
    }

    public VeServiceForumReply setUserid(Integer userid)
    {
        this.userid = userid;return this;
    }

    public VeServiceForumReply setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeServiceForumReply(id=" + getId() + ", userid=" + getUserid() + ", username=" + getUsername() + ", postid=" + getPostid() + ", content=" + getContent() + ", createtime=" + getCreatetime() + ", updatetime=" + getUpdatetime() + ", status=" + getStatus() + ", placeId=" + getPlaceId() + ")";
    }

    public VeServiceForumReply setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeServiceForumReply setStatus(Integer status)
    {
        this.status = status;return this;
    }

    public VeServiceForumReply setUpdatetime(Integer updatetime)
    {
        this.updatetime = updatetime;return this;
    }

    public VeServiceForumReply setCreatetime(Integer createtime)
    {
        this.createtime = createtime;return this;
    }

    public VeServiceForumReply setContent(String content)
    {
        this.content = content;return this;
    }

    public VeServiceForumReply setPostid(Integer postid)
    {
        this.postid = postid;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $userid = getUserid();result = result * 59 + ($userid == null ? 43 : $userid.hashCode());Object $postid = getPostid();result = result * 59 + ($postid == null ? 43 : $postid.hashCode());Object $createtime = getCreatetime();result = result * 59 + ($createtime == null ? 43 : $createtime.hashCode());Object $updatetime = getUpdatetime();result = result * 59 + ($updatetime == null ? 43 : $updatetime.hashCode());Object $status = getStatus();result = result * 59 + ($status == null ? 43 : $status.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $username = getUsername();result = result * 59 + ($username == null ? 43 : $username.hashCode());Object $content = getContent();result = result * 59 + ($content == null ? 43 : $content.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeServiceForumReply;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeServiceForumReply)) {
            return false;
        }
        VeServiceForumReply other = (VeServiceForumReply)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$userid = getUserid();Object other$userid = other.getUserid();
        if (this$userid == null ? other$userid != null : !this$userid.equals(other$userid)) {
            return false;
        }
        Object this$postid = getPostid();Object other$postid = other.getPostid();
        if (this$postid == null ? other$postid != null : !this$postid.equals(other$postid)) {
            return false;
        }
        Object this$createtime = getCreatetime();Object other$createtime = other.getCreatetime();
        if (this$createtime == null ? other$createtime != null : !this$createtime.equals(other$createtime)) {
            return false;
        }
        Object this$updatetime = getUpdatetime();Object other$updatetime = other.getUpdatetime();
        if (this$updatetime == null ? other$updatetime != null : !this$updatetime.equals(other$updatetime)) {
            return false;
        }
        Object this$status = getStatus();Object other$status = other.getStatus();
        if (this$status == null ? other$status != null : !this$status.equals(other$status)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$username = getUsername();Object other$username = other.getUsername();
        if (this$username == null ? other$username != null : !this$username.equals(other$username)) {
            return false;
        }
        Object this$content = getContent();Object other$content = other.getContent();return this$content == null ? other$content == null : this$content.equals(other$content);
    }

    public Integer getId()
    {
        return this.id;
    }

    public Integer getUserid()
    {
        return this.userid;
    }

    public String getUsername()
    {
        return this.username;
    }

    public Integer getPostid()
    {
        return this.postid;
    }

    public String getContent()
    {
        return this.content;
    }

    public Integer getCreatetime()
    {
        return this.createtime;
    }

    public Integer getUpdatetime()
    {
        return this.updatetime;
    }

    public Integer getStatus()
    {
        return this.status;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
